<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var a = [35,34,12,5,63,14]
        for (var i =0;i < a.length -1 ;i++){
            for(var j = 0; j < a.length -i -1;j++){
                if(a[j]>a[j+1]){
                    var temp = a[j];
                    a[j] = a[j+1];
                    a[j+1] = temp;
                }
            }
        }
    </script>
</head>
<body>
    
</body>
</html>